package com.yw.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yw.interfaceManageInfo.dto.TestDTO;
import com.yw.interfaceManageInfo.domain.InterfaceManageInfo;
import com.yw.interfaceManageInfo.dto.ConditionPageDTO;
import com.yw.interfaceManageInfo.dto.InterfaceManageInfoDTO;
import com.yw.interfaceManageInfo.vo.*;
import com.yw.piliangDTO.StatusDTO;
import com.yw.result.PageDTO;
import com.yw.result.R;

import java.util.List;


public interface InterfaceService extends IService<InterfaceManageInfo> {
    public Boolean updateStatic(Integer id);
    public Page<InterfaceManageInfoVO> pageByCondition(ConditionPageDTO conditionPageDTO);

    public Page<InterfaceManageInfoVO> pageListVO(PageDTO pageDTO);
    public Boolean saveInterface(InterfaceManageInfoDTO interfaceManageInfoDTO);

    public InterfaceManageInfoDTO oneInterface(Integer id);

    public Boolean updateInterface(InterfaceManageInfoDTO interfaceManageInfoDTO);

    //批量发布
    public Boolean batch(StatusDTO statusDTO);

//    批量修改分类
    public Boolean updateTypeBatch(List<Integer> ids,String type);

//    接口测试
    public R test(TestDTO testDTO);
//查看接口测试详情
    public QueryTestVO testDetails(Integer id);
//任务中点击下拉框
    public List<TaskInterfaceVO> taskGetInterface();

    //任务中选中显示输入输出参数
    public TaskValuesVO getValues(Integer id);

}
